import Cookies from 'js-cookie'
import { getToken as gToken , setToken as sToken} from '../libs/util.js'
const TokenKey = 'doracms'

export function getToken() {
  // return Cookies.get(TokenKey) 
  return gToken() // 这里的token统一用libs里的
}

export function setToken(token) {
	return sToken(token)
  // return Cookies.set(TokenKey, token)
}

export function removeToken() {
  return Cookies.remove(TokenKey)
}
